Resource URL: /platform/<<version=3>>/local/cluster/nodes/<LNN>/state/smartfail

    Overview: This resource applies the standard collection pattern to
              individual nodes.  LNN in the resource path is the node lnn ID.

     Methods: GET, PUT

********************************************************************************

Method GET: Retrieve node smartfail state information.

       URL: GET
            /platform/<<version=3>>/local/cluster/nodes/<LNN>/state/smartfail

There are no query arguments for this method.

GET response body schema:
{
  "type": "object", 
  "properties": {
    "nodes": {
      "items": {
        "type": "object", 
        "description": "Node smartfail state.", 
        "properties": {
          "smartfailed": {
            "type": "boolean", 
            "description": "This node is smartfailed (soft_devs)."
          }, 
          "dead": {
            "type": "boolean", 
            "description": "This node is dead (dead_devs)."
          }, 
          "down": {
            "type": "boolean", 
            "description": "This node is down (down_devs)."
          }, 
          "readonly": {
            "type": "boolean", 
            "description": "This node is readonly (ro_devs)."
          }, 
          "lnn": {
            "type": "integer", 
            "description": "Logical Node Number (LNN) of this node."
          }, 
          "in_cluster": {
            "type": "boolean", 
            "description": "This node is in the cluster (all_devs)."
          }, 
          "id": {
            "type": "integer", 
            "description": "Node ID (Device Number) of this node."
          }, 
          "shutdown_readonly": {
            "type": "boolean", 
            "description": "This node is shutdown readonly (down_devs)."
          }
        }
      }, 
      "type": "array"
    }, 
    "total": {
      "type": "integer", 
      "description": "Total number of items available."
    }
  }
}

********************************************************************************

Method PUT: Modify smartfail state of the node.  Only the 'smartfailed' body
            member has any effect on node smartfail state.

       URL: PUT
            /platform/<<version=3>>/local/cluster/nodes/<LNN>/state/smartfail

There are no query arguments for this method.

PUT request body schema:
{
  "type": "object", 
  "description": "Node smartfail state.", 
  "properties": {
    "smartfailed": {
      "type": "boolean", 
      "description": "This node is smartfailed (soft_devs)."
    }, 
    "dead": {
      "type": "boolean", 
      "description": "This node is dead (dead_devs)."
    }, 
    "down": {
      "type": "boolean", 
      "description": "This node is down (down_devs)."
    }, 
    "readonly": {
      "type": "boolean", 
      "description": "This node is readonly (ro_devs)."
    }, 
    "in_cluster": {
      "type": "boolean", 
      "description": "This node is in the cluster (all_devs)."
    }, 
    "shutdown_readonly": {
      "type": "boolean", 
      "description": "This node is shutdown readonly (down_devs)."
    }
  }
}

There is no response body for this method.
